﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<JobDescOnline.Presentation.Models.JobDescRelationShip>>" %>

<% foreach (var res in Model) { %>
    <tr valign="top">
        <td>
            <%= Html.Hidden("JobDescriptionID" + res.ID.ToString(), res.JobDescriptionID)%>
            <%= Html.TextBox("Department" + res.ID.ToString(), res.Department)%>
        </td>
        <td><%= Html.TextArea("Purpose" + res.ID.ToString(), res.Purpose)%></td>
        <td style="text-align: center">
            <input type="button" onclick="return SaveRelationship(<%= res.ID.ToString() %>, 'Internal');" value="Simpan" />
            <input type="button" onclick="return DeleteRelationship(<%= res.ID.ToString() %>, 'Internal');" value="Hapus" />
        </td>
    </tr>
<% } %>